<template>
  <div class="venus-list-page">
    <!--自定义资产模板界面-->
    <div class="page-search">
      <el-row type="flex" class="search-list">
        <el-row type="flex" class="list-items">
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>核算方式</label>
              <el-select
                v-model="queryForm.ad_calculation"
                class="venus-input-middle"
                placeholder="--请选择资产类别--"
              >
                <el-option
                  v-for="(item) in adCalculationItems"
                  :key="item.value"
                  :label="item.text"
                  :value="item.value"
                />
              </el-select>
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>资产负债代码</label>
              <el-input
                v-model="queryForm.ftool_code"
                class="venus-input-middle"
                placeholder="请输入资产负债代码"
              />
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>资产负债名称</label>
              <el-input
                v-model="queryForm.ftool_name"
                class="venus-input-middle"
                placeholder="请输入资产负债名称"
              />
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>起息日</label>
              <el-date-picker
                v-model="queryForm.begindate"
                type="date"
                class="venus-input-middle venus-input-date"
                placeholder="请输入起息日"
              />
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>到期日</label>
              <el-date-picker
                v-model="queryForm.enddate"
                type="date"
                class="venus-input-middle venus-input-date"
                placeholder="请输入到期日"
              />
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>付息频率</label>
              <el-select
                v-model="queryForm.pay_freq"
                class="venus-input-middle"
                placeholder="--请选择资产类别--"
              >
                <el-option
                  v-for="(item) in payFreqItems"
                  :key="item.value"
                  :label="item.text"
                  :value="item.value"
                />
              </el-select>
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>收益率(%)</label>
              <el-input
                v-model="queryForm.yield"
                class="venus-input-middle"
                placeholder="请输入资产负债名称"
              />
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>计息基数</label>
              <el-select
                v-model="queryForm.basedays"
                class="venus-input-middle"
                placeholder="--请选择资产类别--"
              >
                <el-option
                  v-for="(item) in basedaysItems"
                  :key="item.value"
                  :label="item.text"
                  :value="item.value"
                />
              </el-select>
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>首次付息日</label>
              <el-date-picker
                v-model="queryForm.first_pay"
                type="date"
                class="venus-input-middle venus-input-date"
                placeholder="请输入到期日"
              />
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>币种</label>
              <el-select
                v-model="queryForm.trust_ccy"
                class="venus-input-middle"
                placeholder="--请选择资产类别--"
              >
                <el-option
                  v-for="(item) in trustCcyItems"
                  :key="item.value"
                  :label="item.text"
                  :value="item.value"
                />
              </el-select>
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>备注</label>
              <el-date-picker
                v-model="queryForm.remark"
                type="date"
                class="venus-input-middle venus-input-date"
                placeholder="请输入到期日"
              />
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>是否计提</label>
              <el-checkbox v-model="is_accrued">是否计提</el-checkbox>
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>收益特点</label>
              <el-select
                v-model="queryForm.profit_characteristic"
                class="venus-input-middle"
                placeholder="--请选择收益特点--"
              >
                <el-option
                  v-for="(item) in profitCharacteristicItems"
                  :key="item.value"
                  :label="item.text"
                  :value="item.value"
                />
              </el-select>
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>结构性存款挂钩标的类别</label>
              <el-select
                v-model="queryForm.structured_standard_type"
                class="venus-input-middle"
                placeholder="--请选择结构性存款挂钩标的类别--"
              >
                <el-option
                  v-for="(item) in structuredStandardTypeItems"
                  :key="item.value"
                  :label="item.text"
                  :value="item.value"
                />
              </el-select>
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>发行方</label>
              <el-select
                v-model="queryForm.oside_code"
                class="venus-input-middle"
                placeholder="--请选择发行方--"
              >
                <el-option
                  v-for="(item) in osideCodeItems"
                  :key="item.value"
                  :label="item.text"
                  :value="item.value"
                />
              </el-select>
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>结构性存款挂钩标的</label>
              <el-input
                v-model="queryForm.structured_standard"
                class="venus-input-middle"
                placeholder="请输入结构性存款挂钩标的"
              />
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>是否为结构性存款</label>
              <el-select
                v-model="queryForm.t8_is_empty_sf"
                class="venus-input-middle"
                placeholder="--请选择是否为结构性存款--"
              >
                <el-option
                  v-for="(item) in t8IsEmptySfItems"
                  :key="item.value"
                  :label="item.text"
                  :value="item.value"
                />
              </el-select>
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>募集金额(万元)</label>
              <el-input
                v-model="queryForm.acual_trustbal"
                class="venus-input-middle"
                placeholder="请输入募集金额(万元)"
              />
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>是否提前还本</label>
              <el-checkbox v-model="is_accrued">是否提前还本</el-checkbox>
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>是否过桥资产</label>
              <el-select
                v-model="queryForm.is_bridge"
                class="venus-input-middle"
                placeholder="--请选择是否过桥资产--"
              >
                <el-option
                  v-for="(item) in isBridgeItems"
                  :key="item.value"
                  :label="item.text"
                  :value="item.value"
                />
              </el-select>
            </div>
          </el-col>
          <el-col :xs="24" :sm="12" :md="8">
            <div class="venus-input-box">
              <label>风险权重(%)</label>
              <el-input
                v-model="queryForm.risk_weight"
                class="venus-input-middle"
                placeholder="请输入风险权重(%)"
              />
            </div>
          </el-col>
        </el-row>
      </el-row>
      <div class="venus-btn-box" style="text-align: center">
        <el-button type="primary" @click="">保存</el-button>
        <el-button type="primary" @click="">返回</el-button>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'M82003',
    data() { // 数据定义
      return {
        /* 查询部分 */
        queryForm: {
          ad_calculation: '', // 核算方式
          ftool_code: '', // 资产负债代码
          ftool_name: '', // 请输入资产负债名称
          begindate: '', // 起息日
          enddate: '', // 到期日
          pay_freq: '', // 付息频率
          yield: '', // 收益率
          basedays: '', // 计息基数
          trust_ccy: '', // 币种
          first_pay: '', // 首次付息日
          remark: '', // 备注
          is_accrued: '', // 是否计提
          profit_characteristic: '', // 收益特点
          structured_standard_type: '', // 结构性存款挂钩标的类别
          osideCodeItems: '', // 发行方
          structured_standard: '', // 结构性存款挂钩标的
          t8_is_empty_sf: '', // 是否为结构性存款
          acual_trustbal: '', // 募集金额(万元)
          is_accrued: '', // 是否提前还本
          is_bridge: '', // 是否过桥资产
          risk_weight: ''// 风险权重(%)
        },
        adCalculationItems: [
          {value: '1', text: '按受益'},
          {value: '2', text: '按净值'}
        ], // 核算方式
        payFreqItems: [
          {value: '1', text: '按月支付'},
          {value: '2', text: '按季支付'},
          {value: '3', text: '半年支付'},
          {value: '4', text: '按年支付'},
          {value: '5', text: '到期支付'}
        ], // 付息频率
        basedaysItems: [
          {value: '1', text: 'ACT/360'},
          {value: '2', text: 'ACT/365'}
        ], // 计息基数
        trustCcyItems: [
          {value: '1', text: '人民币'},
          {value: '2', text: '美元'},
          {value: '3', text: '欧元'}
        ], // 币种
        profitCharacteristicItems: [
          {value: '1', text: '保本'},
          {value: '2', text: '非保本'}
        ], // 收益特点
        structuredStandardTypeItems: [
          {value: '1', text: '互换'},
          {value: '2', text: '利率'},
          {value: '3', text: '汇率'}
        ], // 结构性存款挂钩标的类别
        osideCodeItems: [
          {value: '1', text: '发行方1'},
          {value: '2', text: '发行方2'},
          {value: '3', text: '发行方3'}
        ], // 发行方
        t8IsEmptySfItems: [
          {value: '1', text: '是'},
          {value: '2', text: '否'}
        ], // 是否为结构性存款
        isBridgeItems: [
          {value: '1', text: '是'},
          {value: '2', text: '否'}
        ] // 是否过桥资产
      }
    },
    mounted() {
      // 初始化调用
      this.init()
    },
    methods: {
      // 页面初始化
      init: function () {
      }
    }
  }
</script>

<style scoped>
</style>
